class Bubble_sort
	{
	public static int[] sortArrayBubble(int[] a)
		{
		for(int j=0;j<a.length-1;j++)
			for(int i=0;i<a.length-j-1;i++)
				if(a[i]>a[i+1])
					{
					int temp=a[i];
					a[i]=a[i+1];
					a[i+1]=temp;
					}
		return a;
		}
	public static void displayArray(int[] a)
		{
		System.out.println("The Original Array is : ");
		for(int i=0;i<a.length;i++)
			{
			System.out.println(a[i]);
			}
		}
		
	public static void displaySortedArray(int[] a)
		{
		System.out.println("The sorted array is : ");
		for(int i=0;i<a.length;i++)
			{
			System.out.println(a[i]);
			}
		}
	}
	